{% block content %}
  <style>
 .form-wrapper button{
      	background: transparent;
		border: none;
		outline: none;
		color: #fff;
		background: #e95420;
		padding: 2px 2px;
		cursor: pointer;
		border-radius: 5px;
        position: absolute;
        left:158px;
        width: 50px;
        height: 30px;

    }
    .form-wrapper-button{
      margin-top: 5px;
  }
    .form-wrapper{
      margin-top: 200px;
  }
  </style>
    <title>创建映像</title>
  {% if messages %}
        <script>
            {% for msg in messages %}
                alert('{{ msg.message }}');
            {% endfor %}
        </script>
    {% endif %}
    <h1>创建映像</h1>
    <div class="form-wrapper">
        <form method="post" action="" enctype="multipart/form-data">
            {% csrf_token %}
            {% for field in form %}
                <div class="fileWrapper">
                {{ field.errors }}
                {{ field.label_tag }}{{ field }}
                {% if field.help_text %}
                    <p class="help">{{ field.help_text|safe }}</p>
                {% endif %}
                </div>
            {% endfor %}
              <div class="form-wrapper-button">
               <button type="submit" name="">创建</button>
              </div>
        </form>
    </div>
{% endblock %}